MissionUpdater

Updater peripheral interface for drones.

Allows to:

  • List missions present on the connected drone,
  • Add a mission to the connected drone,
  • Remove a mission from the connected drone,
  • Update a mission on the connected drone.
This peripheral can be obtained from a peripheral providing device (such as a drone or a remote control) using:
device.getPeripheral(MissionUpdater.class)

See also

Peripheral.Provider

Types

Link copied to clipboard
Mission updater request state.
Link copied to clipboard
Flags that may be applied to a mission upload request.
Link copied to clipboard
Mission file upload state.

Functions

Link copied to clipboard
abstract fun browse()
Requests the list of missions present on the drone.
Link copied to clipboard
abstract fun cancelUpload(): Boolean
Cancels an ongoing mission upload operation.
Link copied to clipboard
abstract fun complete(): Boolean
Completes the installation of the uploaded missions.
Link copied to clipboard
abstract fun delete(@NonNull uid: String)
Deletes the specified mission from the drone.
Link copied to clipboard
Gives the latest browse state.
Link copied to clipboard
Gives the latest mission deletion state.
Link copied to clipboard
Gives the latest file upload state.
Link copied to clipboard
abstract fun missions(): List<Mission>
Gives the latest list of missions retrieved from the drone with browse.
Link copied to clipboard
abstract fun upload(@NonNull missionFile: File, @NonNull flags: Array<MissionUpdater.UploadFlag>)
Uploads a mission file to the drone.
Link copied to clipboard
@IntRange(from = 0, to = 100)
abstract fun uploadProgress(): Int
Gives current file upload progress, in percent.